<?php
namespace other;

/*
UserId：72104
客户账号：OT01165
登录密码：2sewu3sp
接口密码：btmw6d84
平台地址：http://c.ipyy.net
*/

class SmsMuSend
{
    const url ="https://dx.ipyy.net/sms.aspx";
    static function send($mobiles,$content)
    {
        $body=array(
            'action'=>'send',
            'userid'=>'72104',
            'account'=>'OT01165',
            'password'=>'btmw6d84',
            'mobile'=>$mobiles,
            'extno'=>'',
            'content'=>$content,
            'sendtime'=>date('Y-m-d H:i:s')
        );

        $ch=curl_init();
        curl_setopt($ch, CURLOPT_URL, self::url);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        $result = curl_exec($ch);
        curl_close($ch);
        return $result;
    }
}
?>